import logo from './logo.svg';
import './App.css';
import { useTranslation } from 'react-i18next'
function App() {
  const {t, i18n }= useTranslation()
  return (
    <div className="App">
      <button onClick={() => i18n.changeLanguage('zh')}>中文</button>
      <button onClick={() => i18n.changeLanguage('en')}>英文</button>
      <button onClick={() => i18n.changeLanguage('hy')}>韩语</button>

      <button onClick={
      () => i18n.addResources('hy', 'translation', {
        title: '韩语'
      })
      }>添加韩语</button>
      <div>{t('title')}</div>
    </div>
  );
}

export default App;
